package com.tudouji.project.bill.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tudouji.project.bill.mapper.WhinforecordMapper;
import com.tudouji.project.bill.domain.Whinforecord;
import com.tudouji.project.bill.service.IWhinforecordService;

/**
 * 每日库存Service业务层处理
 * 
 * @author tudouji
 * @date 2023-04-27
 */
@Service
public class WhinforecordServiceImpl implements IWhinforecordService 
{
    @Autowired
    private WhinforecordMapper whinforecordMapper;

    /**
     * 查询每日库存
     * 
     * @param guid 每日库存ID
     * @return 每日库存
     */
    @Override
    public Whinforecord selectWhinforecordById(String guid)
    {
        return whinforecordMapper.selectWhinforecordById(guid);
    }

    /**
     * 查询每日库存列表
     * 
     * @param whinforecord 每日库存
     * @return 每日库存
     */
    @Override
    public List<Whinforecord> selectWhinforecordList(Whinforecord whinforecord)
    {
        return whinforecordMapper.selectWhinforecordList(whinforecord);
    }

    /**
     * 新增每日库存
     * 
     * @param whinforecord 每日库存
     * @return 结果
     */
    @Override
    public int insertWhinforecord(Whinforecord whinforecord)
    {
        return whinforecordMapper.insertWhinforecord(whinforecord);
    }

    /**
     * 修改每日库存
     * 
     * @param whinforecord 每日库存
     * @return 结果
     */
    @Override
    public int updateWhinforecord(Whinforecord whinforecord)
    {
        return whinforecordMapper.updateWhinforecord(whinforecord);
    }

    /**
     * 批量删除每日库存
     * 
     * @param guids 需要删除的每日库存ID
     * @return 结果
     */
    @Override
    public int deleteWhinforecordByIds(String[] guids)
    {
        return whinforecordMapper.deleteWhinforecordByIds(guids);
    }

    /**
     * 删除每日库存信息
     * 
     * @param guid 每日库存ID
     * @return 结果
     */
    @Override
    public int deleteWhinforecordById(String guid)
    {
        return whinforecordMapper.deleteWhinforecordById(guid);
    }

    public void insertAllDay() {
        whinforecordMapper.insertAllDay();
    }
}
